const KoaRouter = require('koa-router');

const fileRouter = new KoaRouter({prefix: '/upload'});

const {
  getImgByPath,
} = require('../controller/file.controller');

// 获取图片
fileRouter.get('/getImgByPath/:imgName', getImgByPath);

module.exports = fileRouter;